package com.jimmieran.springcloudtest.fegiontest.fegiontest.controller;

import com.jimmieran.springcloudtest.fegiontest.fegiontest.service.FegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FegionController {

    @Autowired
    private FegionService fegionService;

    @RequestMapping("/fegionSay")
    public String fegionSayHello(@RequestParam String name){
        return fegionService.say(name);
    }
}
